//
//  MontiorGLDetailModel.m
//  MyStock
//
//  Created by 刘翔 on 2024/10/28.
//

#import "MontiorGLDetailModel.h"

@implementation MontiorGLDetailModel

- (void)setCode:(NSString *)code{
    _code = [code copy];
    [self xw_addNotificationForName:code block:^(NSNotification * _Nonnull notification) {
        NSDictionary *dic = notification.userInfo;
        
        self.time = [NSString stringWithFormat:@"%@",dic[@"time"]];
        self.last_px = [NSString stringWithFormat:@"%@",dic[@"last_px"]];
        self.px_change = [NSString stringWithFormat:@"%@",dic[@"px_change"]];
        self.px_change_rate = [NSString stringWithFormat:@"%@",dic[@"px_change_rate"]];
        self.high_px = [NSString stringWithFormat:@"%@",dic[@"high_px"]];
        self.low_px = [NSString stringWithFormat:@"%@",dic[@"low_px"]];
        self.open_px = [NSString stringWithFormat:@"%@",dic[@"open_px"]];
        self.avg_px = [NSString stringWithFormat:@"%@",dic[@"avg_px"]];
        self.turnover_ratio = [NSString stringWithFormat:@"%@",dic[@"turnover_ratio"]];
        self.total_amount = [NSString stringWithFormat:@"%@",dic[@"total_amount"]];
        self.total_turnover = [NSString stringWithFormat:@"%@",dic[@"total_turnover"]];
        self.vol_ratio = [NSString stringWithFormat:@"%@",dic[@"vol_ratio"]];
        self.up_px = [NSString stringWithFormat:@"%@",dic[@"up_px"]];
        self.down_px = [NSString stringWithFormat:@"%@",dic[@"down_px"]];
        self.amplitude = [NSString stringWithFormat:@"%@",dic[@"amplitude"]];
        self.entrust_rate = [NSString stringWithFormat:@"%@",dic[@"entrust_rate"]];
        self.amount_in = [NSString stringWithFormat:@"%@",dic[@"amount_in"]];
        self.amount_out = [NSString stringWithFormat:@"%@",dic[@"amount_out"]];
        self.dyn_pb_rate = [NSString stringWithFormat:@"%@",dic[@"dyn_pb_rate"]];
        self.pe_rate = [NSString stringWithFormat:@"%@",dic[@"pe_rate"]];
        self.TTMPeRate = [NSString stringWithFormat:@"%@",dic[@"TTMPeRate"]];
        self.jtPeRate = [NSString stringWithFormat:@"%@",dic[@"jtPeRate"]];
        self.circulation_amount = [NSString stringWithFormat:@"%@",dic[@"circulation_amount"]];
        self.circulation_value = [NSString stringWithFormat:@"%@",dic[@"circulation_value"]];
        self.total_shares = [NSString stringWithFormat:@"%@",dic[@"total_shares"]];
        self.market_value = [NSString stringWithFormat:@"%@",dic[@"market_value"]];
        self.actualcirculation_value = [NSString stringWithFormat:@"%@",dic[@"actualcirculation_value"]];
        self.PledgeRatio = [NSString stringWithFormat:@"%@",dic[@"PledgeRatio"]];

    }];
}
@end
